#include <stdlib.h>
#include <stdio.h>

#include "queue.h"

int main(int argc, char **argv) {
	Queue queue = createQueue(5);
	int i = 1;

	while (!isFull(queue))
		enQueue(queue, i++);
	// test1
	// while (!isEmpty(queue))
	// 	printf("deQueue=%d\n", deQueue(queue));
	deQueue(queue);
	deQueue(queue);
	printf("front=%d\n", front(queue));
	enQueue(queue, i++);
	enQueue(queue, i++);
	// test2
	while (!isEmpty(queue))
		printf("deQueue=%d\n", deQueue(queue));

	disposeQueue(queue);
	printf("all done\n");
	return 0;
}